/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package GameRules.impl;

import BoardGame.BoardGamePackage;

import GameRules.GameRulesFactory;
import GameRules.GameRulesPackage;
import GameRules.KW_KingWhite;
import GameRules.NW_KnightWhite;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class GameRulesPackageImpl extends EPackageImpl implements
		GameRulesPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass kW_KingWhiteEClass = null;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass nW_KnightWhiteEClass = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see GameRules.GameRulesPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private GameRulesPackageImpl() {
		super(eNS_URI, GameRulesFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link GameRulesPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static GameRulesPackage init() {
		if (isInited)
			return (GameRulesPackage) EPackage.Registry.INSTANCE
					.getEPackage(GameRulesPackage.eNS_URI);

		// Obtain or create and register package
		GameRulesPackageImpl theGameRulesPackage = (GameRulesPackageImpl) (EPackage.Registry.INSTANCE
				.get(eNS_URI) instanceof GameRulesPackageImpl ? EPackage.Registry.INSTANCE
				.get(eNS_URI) : new GameRulesPackageImpl());

		isInited = true;

		// Initialize simple dependencies
		BoardGamePackage.eINSTANCE.eClass();

		// Create package meta-data objects
		theGameRulesPackage.createPackageContents();

		// Initialize created meta-data
		theGameRulesPackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theGameRulesPackage.freeze();

		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(GameRulesPackage.eNS_URI,
				theGameRulesPackage);
		return theGameRulesPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getKW_KingWhite() {
		return kW_KingWhiteEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EOperation getKW_KingWhite__MoveTo__Field() {
		return kW_KingWhiteEClass.getEOperations().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getNW_KnightWhite() {
		return nW_KnightWhiteEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EOperation getNW_KnightWhite__MoveTo__Field() {
		return nW_KnightWhiteEClass.getEOperations().get(0);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public GameRulesFactory getGameRulesFactory() {
		return (GameRulesFactory) getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated)
			return;
		isCreated = true;

		// Create classes and their features
		kW_KingWhiteEClass = createEClass(KW_KING_WHITE);
		createEOperation(kW_KingWhiteEClass, KW_KING_WHITE___MOVE_TO__FIELD);

		nW_KnightWhiteEClass = createEClass(NW_KNIGHT_WHITE);
		createEOperation(nW_KnightWhiteEClass, NW_KNIGHT_WHITE___MOVE_TO__FIELD);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized)
			return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Obtain other dependent packages
		BoardGamePackage theBoardGamePackage = (BoardGamePackage) EPackage.Registry.INSTANCE
				.getEPackage(BoardGamePackage.eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes
		kW_KingWhiteEClass.getESuperTypes()
				.add(theBoardGamePackage.getFigure());
		nW_KnightWhiteEClass.getESuperTypes().add(
				theBoardGamePackage.getFigure());

		// Initialize classes, features, and operations; add parameters
		initEClass(kW_KingWhiteEClass, KW_KingWhite.class, "KW_KingWhite",
				!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

		EOperation op = initEOperation(getKW_KingWhite__MoveTo__Field(), null,
				"moveTo", 0, 1, IS_UNIQUE, IS_ORDERED);
		addEParameter(op, theBoardGamePackage.getField(), "field", 0, 1,
				IS_UNIQUE, IS_ORDERED);

		initEClass(nW_KnightWhiteEClass, NW_KnightWhite.class,
				"NW_KnightWhite", !IS_ABSTRACT, !IS_INTERFACE,
				IS_GENERATED_INSTANCE_CLASS);

		op = initEOperation(getNW_KnightWhite__MoveTo__Field(), null, "moveTo",
				0, 1, IS_UNIQUE, IS_ORDERED);
		addEParameter(op, theBoardGamePackage.getField(), "field", 0, 1,
				IS_UNIQUE, IS_ORDERED);

		// Create resource
		createResource(eNS_URI);

		// Create annotations
		// SDM
		createSDMAnnotations();
	}

	/**
	 * Initializes the annotations for <b>SDM</b>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected void createSDMAnnotations() {
		String source = "SDM";
		addAnnotation(
				getKW_KingWhite__MoveTo__Field(),
				source,
				new String[] {
						"XMI",
						"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<SDMLanguage.activities:Activity xmi:version=\"2.0\" xmlns:xmi=\"http://www.omg.org/XMI\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SDMLanguage.activities=\"http://www.moflon.org/SDMLanguage.activities\" xmlns:ecore=\"http://www.eclipse.org/emf/2002/Ecore\">\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.1\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StartNode\" outgoing=\"//@ownedActivityEdge.0\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.1 //@ownedActivityEdge.2\" incoming=\"//@ownedActivityEdge.3\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.0 //@ownedActivityNode.2/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.0 //@ownedActivityNode.2/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.1\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.2\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.2\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.3 //@ownedActivityEdge.4\" incoming=\"//@ownedActivityEdge.5\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.4/@storyPattern/@linkVariable.0 //@ownedActivityNode.4/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.4/@storyPattern/@linkVariable.0\" outgoingLink=\"//@ownedActivityNode.4/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.4/@storyPattern/@linkVariable.1 //@ownedActivityNode.4/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.4/@storyPattern/@objectVariable.1\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.4\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.5 //@ownedActivityEdge.6\" incoming=\"//@ownedActivityEdge.7\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.6/@storyPattern/@linkVariable.0 //@ownedActivityNode.6/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.6/@storyPattern/@linkVariable.0\" outgoingLink=\"//@ownedActivityNode.6/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.6/@storyPattern/@linkVariable.1 //@ownedActivityNode.6/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.6/@storyPattern/@objectVariable.1\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.6\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.7 //@ownedActivityEdge.8\" incoming=\"//@ownedActivityEdge.9\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.8/@storyPattern/@linkVariable.0 //@ownedActivityNode.8/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.8/@storyPattern/@linkVariable.0 //@ownedActivityNode.8/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.8/@storyPattern/@linkVariable.1\" outgoingLink=\"//@ownedActivityNode.8/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.8/@storyPattern/@objectVariable.2\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.8\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.9 //@ownedActivityEdge.10\" incoming=\"//@ownedActivityEdge.11\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.0 //@ownedActivityNode.10/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field00\" incomingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.3\" outgoingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.0 //@ownedActivityNode.10/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.2\" outgoingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.3 //@ownedActivityNode.10/@storyPattern/@linkVariable.4\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field11\" incomingLink=\"//@ownedActivityNode.10/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.3\" source=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.3\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.10/@storyPattern/@objectVariable.3\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.10\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.11 //@ownedActivityEdge.12\" incoming=\"//@ownedActivityEdge.13\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.0 //@ownedActivityNode.12/@storyPattern/@linkVariable.3\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.0 //@ownedActivityNode.12/@storyPattern/@linkVariable.2\" outgoingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field01\" incomingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field10\" outgoingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.2 //@ownedActivityNode.12/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.12/@storyPattern/@linkVariable.3 //@ownedActivityNode.12/@storyPattern/@linkVariable.4\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.3\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.12/@storyPattern/@objectVariable.3\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.12\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.13 //@ownedActivityEdge.14\" incoming=\"//@ownedActivityEdge.15\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.0 //@ownedActivityNode.14/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field00\" incomingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.3\" outgoingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.0 //@ownedActivityNode.14/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.2\" outgoingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.3 //@ownedActivityNode.14/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field11\" incomingLink=\"//@ownedActivityNode.14/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.3\" source=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.3\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.14/@storyPattern/@objectVariable.3\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.14\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.15 //@ownedActivityEdge.16\" incoming=\"//@ownedActivityEdge.17\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.0 //@ownedActivityNode.16/@storyPattern/@linkVariable.3\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.0 //@ownedActivityNode.16/@storyPattern/@linkVariable.2\" outgoingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.1\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field01\" incomingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.1\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field10\" outgoingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.2 //@ownedActivityNode.16/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.16/@storyPattern/@linkVariable.3 //@ownedActivityNode.16/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.3\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.16/@storyPattern/@objectVariable.3\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.16\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.17 //@ownedActivityEdge.18\" incoming=\"//@ownedActivityEdge.0\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.0 //@ownedActivityNode.18/@storyPattern/@linkVariable.5\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.0\" outgoingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field01\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.2\" outgoingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.1 //@ownedActivityNode.18/@storyPattern/@linkVariable.4\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"noFigure\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.1\" bindingSemantics=\"NEGATIVE\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field02\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.4\" outgoingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.3 //@ownedActivityNode.18/@storyPattern/@linkVariable.6\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"noFigure\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.3\" bindingSemantics=\"NEGATIVE\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.18/@storyPattern/@linkVariable.5 //@ownedActivityNode.18/@storyPattern/@linkVariable.6\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"figure\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.3\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.2\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"figure\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.5\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.4\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.2\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.6\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.6\" source=\"//@ownedActivityNode.18/@storyPattern/@objectVariable.4\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.18\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.1\" target=\"//@ownedActivityNode.18\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.2\" target=\"//@ownedActivityNode.0\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.2\" target=\"//@ownedActivityNode.3\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.4\" target=\"//@ownedActivityNode.2\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.4\" target=\"//@ownedActivityNode.5\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.6\" target=\"//@ownedActivityNode.4\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.6\" target=\"//@ownedActivityNode.7\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.8\" target=\"//@ownedActivityNode.6\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.8\" target=\"//@ownedActivityNode.9\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.10\" target=\"//@ownedActivityNode.8\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.10\" target=\"//@ownedActivityNode.11\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.12\" target=\"//@ownedActivityNode.10\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.12\" target=\"//@ownedActivityNode.13\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.14\" target=\"//@ownedActivityNode.12\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.14\" target=\"//@ownedActivityNode.15\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.16\" target=\"//@ownedActivityNode.14\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.16\" target=\"//@ownedActivityNode.17\" guard=\"SUCCESS\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.18\" target=\"//@ownedActivityNode.16\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.18\" target=\"//@ownedActivityNode.19\" guard=\"SUCCESS\"/>\r\n</SDMLanguage.activities:Activity>\r\n" });
		addAnnotation(
				getNW_KnightWhite__MoveTo__Field(),
				source,
				new String[] {
						"XMI",
						"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<SDMLanguage.activities:Activity xmi:version=\"2.0\" xmlns:xmi=\"http://www.omg.org/XMI\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:SDMLanguage.activities=\"http://www.moflon.org/SDMLanguage.activities\" xmlns:ecore=\"http://www.eclipse.org/emf/2002/Ecore\">\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.1\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StartNode\" outgoing=\"//@ownedActivityEdge.0\"/>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StoryNode\" outgoing=\"//@ownedActivityEdge.1 //@ownedActivityEdge.2\" incoming=\"//@ownedActivityEdge.0\">\r\n    <storyPattern>\r\n      <objectVariable name=\"this\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.1 //@ownedActivityNode.2/@storyPattern/@linkVariable.3\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Figure\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field00\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.4\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.0\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field01\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.0\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.2\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.1 //@ownedActivityNode.2/@storyPattern/@linkVariable.2\" bindingState=\"BOUND\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"currentField\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.3\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.4 //@ownedActivityNode.2/@storyPattern/@linkVariable.5\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field11\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.5\" outgoingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.6\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <objectVariable name=\"field12\" incomingLink=\"//@ownedActivityNode.2/@storyPattern/@linkVariable.6\">\r\n        <type xsi:type=\"ecore:EClass\" href=\"http://www.moflon.org/BoardGame#//Field\"/>\r\n      </objectVariable>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.2\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.1\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.3\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.0\" bindingOperator=\"CREATE\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.3\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.2\"/>\r\n      <linkVariable name=\"field\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.4\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.0\" bindingOperator=\"DESTROY\"/>\r\n      <linkVariable name=\"NeighbourNorth\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.1\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.4\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.5\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.4\"/>\r\n      <linkVariable name=\"NeighbourEast\" target=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.6\" source=\"//@ownedActivityNode.2/@storyPattern/@objectVariable.5\"/>\r\n    </storyPattern>\r\n  </ownedActivityNode>\r\n  <ownedActivityNode xsi:type=\"SDMLanguage.activities:StopNode\" incoming=\"//@ownedActivityEdge.2\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.1\" target=\"//@ownedActivityNode.2\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.2\" target=\"//@ownedActivityNode.0\" guard=\"FAILURE\"/>\r\n  <ownedActivityEdge source=\"//@ownedActivityNode.2\" target=\"//@ownedActivityNode.3\" guard=\"SUCCESS\"/>\r\n</SDMLanguage.activities:Activity>\r\n" });
	}

} //GameRulesPackageImpl
